// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import Element from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
import locale from 'element-ui/lib/locale/lang/en'
import axios from 'axios'
// global css
import '@/styles/index.scss'
// icon
import './icons'
// global css
import '@/styles/index.scss'
// A modern alternative to CSS resets
import 'normalize.css/normalize.css'
import './permission'
import './utils'
//echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

//显示声明使用，vue规则
Vue.use(Element)

Vue.config.productionTip = false
//配置axios发送请求的地址
Vue.prototype.$axios = axios.create({
  baseURL: 'http://192.168.220.128:8081',
  // baseURL: 'http://39.105.232.251:8081',
  // baseURL: 'http://localhost:8081',
  timeout: 15000
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  //配置路由
  router,
  store,
  render: h => h(App),
})
